/*
 * @Description: 征集配置
 * @Author: Zzt
 * @Date: 2023-01-03 21:14:46
 * @LastEditTime: 2023-01-06 19:02:14
 */
import { lazy } from 'react';
import Layout from '@/layout';
import lazyLoad from '../components/lazyLoad';

// 收集管理
export const CollectionArchiveCollection = lazy(
  () =>
    import(
      /* webpackChunkName: "Collection" */ '@/view/collection/ArchiveCollection/ArchiveCollectionMain'
    )
);

// 档案类型配置
export const CollectionArcType = lazy(
  () => import(/* webpackChunkName: "Collection" */ '@/view/collection/ArcType/ArcTypeMain')
);

// 元数据设置
export const CollectionMetadata = lazy(
  () => import(/* webpackChunkName: "Collection" */ '@/view/collection/Metadata/MetadataMain')
);

// 元数据业务设置
export const CollectionMetadataBusiness = lazy(
  () =>
    import(
      /* webpackChunkName: "Collection" */ '@/view/collection/MetadataBusiness/MetadataBusinessMain'
    )
);

// 开放字段设置
export const CollectionOpening = lazy(
  () => import(/* webpackChunkName: "Collection" */ '@/view/collection/Opening/OpeningMain')
);

// 显示排序设置
export const CollectionSorting = lazy(
  () => import(/* webpackChunkName: "Collection" */ '@/view/collection/Sorting/SortingMain')
);

// 映射关系设置
export const CollectionMapping = lazy(
  () =>
    import(
      /* webpackChunkName: "Collection" */ '@/view/collection/MappingRelation/MappingRelationMain'
    )
);

// 录入界面设置
export const CollectionDesign = lazy(
  () => import(/* webpackChunkName: "Collection" */ '@/view/collection/DescDesign/DescDesignMain')
);

const CollectionRoutes: any[] = [
  {
    path: '/collection',
    element: <Layout />,
    meta: {
      title: '系统配置'
    },
    children: [
      {
        path: 'metadata',
        element: lazyLoad(CollectionMetadata),
        meta: {
          title: '单位管理'
        }
      }
    ]
  }
];

export default CollectionRoutes;
